package com.cy.db.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/")
@Controller
public class PageController {
    //http://localhost/log/log_list
    //http://localhost/menu/menu_list
    //rest风格的url,{}代表是变量表达式
    @RequestMapping("{module}/{moduleUI}")
    public String doModuleUI(@PathVariable String moduleUI){
        return "sys/"+moduleUI;
    }
    @RequestMapping(value="doIndexUI")
    public String doIndexUI(){
        return "starter";
    }
//    @RequestMapping(value="doLoginUI")
//    public String doLoginUI(){
//        return "sys/log_list";
//    }
    @RequestMapping(value="doPageUI")
    public String doPageUI(){
        return "common/page";
    }

}
